Some students are interested in making a game where a Hero fights zombies. The students making the program will be interested in the coding examples below. The StarlogoTNG programs are to provide reference for students to design and program a game. The teacher will not make it for you. The students are required to learn, adapt, and produce.
The program below has a controllable Player, a few robot Ants, and some robot Fish breeds. The Fish are programmed to move away from all other breeds including its own type. When the Player does chase down and collides with a Fish, the Fish dies and the Player's score increases by the value of that Fish. The Ants will chase after the Player if the Player is within a certain range of the Ants. The Ants die when colliding with the Player, but the Player's score is decreased by 5. If the score gets high enough, the Player is moved to a new layer with more Ants trying to hit the Player.
This program has many of the aspects of a zombie game. The zombies normally chase after the Hero and uninfected people. The uninfected people try to move away from the zombies at all times. The Hero tries to destroy the zombies from a distance. Uninfected people become zombies if they collide with a zombie.
This simulation is a two person-one keyboard "shooter" game. The first person to tag their opponent wins. Each player has the ability to fire and move. Obstacles stop forward motion and projectiles. Player 1 uses WSAD keys for movement and R for firing. Player 2 uses IKJL for movement and P for firing. The game provides the programming to create projectiles.
This program allows for you the background to create breeds to shoot and destroy zombies. You can look in Asteroids Finale program to see how to limit the number of shots you have at a time. Unlimited ammunition can ruin a game.
Zombie Ideas
Some students are interested in making a game where a Hero fights zombies. The students making the program will be interested in the coding examples below. The StarlogoTNG programs are to provide reference for students to design and program a game. The teacher will not make it for you. The students are required to learn, adapt, and produce.
The program below has a controllable Player, a few robot Ants, and some robot Fish breeds. The Fish are programmed to move away from all other breeds including its own type. When the Player does chase down and collides with a Fish, the Fish dies and the Player's score increases by the value of that Fish. The Ants will chase after the Player if the Player is within a certain range of the Ants. The Ants die when colliding with the Player, but the Player's score is decreased by 5. If the score gets high enough, the Player is moved to a new layer with more Ants trying to hit the Player.
This program has many of the aspects of a zombie game. The zombies normally chase after the Hero and uninfected people. The uninfected people try to move away from the zombies at all times. The Hero tries to destroy the zombies from a distance. Uninfected people become zombies if they collide with a zombie.
This simulation is a two person-one keyboard "shooter" game. The first person to tag their opponent wins. Each player has the ability to fire and move. Obstacles stop forward motion and projectiles. Player 1 uses WSAD keys for movement and R for firing. Player 2 uses IKJL for movement and P for firing. The game provides the programming to create projectiles.
This program allows for you the background to create breeds to shoot and destroy zombies. You can look in Asteroids Finale program to see how to limit the number of shots you have at a time. Unlimited ammunition can ruin a game.